package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IPermissionService {
    int insert(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> selectAll();

    PageResult query(QueryObject qo);

    int deleteByPrimaryKey(Long id);

    List<Permission> getPermissionByRoleId(Long roleId);

    void loadPermission();

    List<String> getPermissionByEmployeeId(Long employeeId);
}
